<?php
class ArrayCache extends AbsCache {
	protected $data;
	
	public function __construct($cfg) {
		$this->data = array();
		parent::__construct($cfg);
	}
	
	public function store($key, $val) {
		$this->data[$this->group . '-' . $key] = $val;
		return true;
	}
	
	public function fetch($key) {
		return $this->data[$this->group . '-' . $key];
	}
	
	public function delete($key) {
		unset($this->data[$this->group . '-' . $key]);
		return true;
	}
	
	public function clear() {
		$this->data = array();
		return true;
	}
	
	public function dump() {
		print_r($this->data);
	}
}
?>